﻿// Decompiled with JetBrains decompiler
// Type: UnityEngine.Windows.Directory
// Assembly: UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: E6AE6B5A-2752-4B07-9528-C8B77C62CE79
// Assembly location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.dll
// XML documentation location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.xml

using System.Runtime.CompilerServices;
using UnityEngine.Bindings;

#nullable disable
namespace UnityEngine.Windows
{
  /// <summary>
  ///   <para>Exposes static methods for directory operations.</para>
  /// </summary>
  public static class Directory
  {
    /// <summary>
    ///   <para>Returns a path to temporary folder.</para>
    /// </summary>
    [NativeHeader("Runtime/Export/Windows/WindowsDirectoryBindings.h")]
    public static extern string temporaryFolder { [MethodImpl(MethodImplOptions.InternalCall)] get; }

    /// <summary>
    ///   <para>Returns a path to local folder.</para>
    /// </summary>
    [NativeHeader("Runtime/Export/Windows/WindowsDirectoryBindings.h")]
    public static extern string localFolder { [MethodImpl(MethodImplOptions.InternalCall)] get; }

    /// <summary>
    ///   <para>Returns a path to roaming folder.</para>
    /// </summary>
    [NativeHeader("Runtime/Export/Windows/WindowsDirectoryBindings.h")]
    public static extern string roamingFolder { [MethodImpl(MethodImplOptions.InternalCall)] get; }

    /// <summary>
    ///   <para>Creates directory in the specified path.</para>
    /// </summary>
    /// <param name="path">The directory path to create.</param>
    [NativeHeader("Runtime/Export/Windows/WindowsDirectoryBindings.h")]
    [MethodImpl(MethodImplOptions.InternalCall)]
    public static extern void CreateDirectory(string path);

    /// <summary>
    ///   <para>Determines whether the given path refers to an existing directory.</para>
    /// </summary>
    /// <param name="path">The path to test.</param>
    [NativeHeader("Runtime/Export/Windows/WindowsDirectoryBindings.h")]
    [MethodImpl(MethodImplOptions.InternalCall)]
    public static extern bool Exists(string path);

    /// <summary>
    ///   <para>Deletes a directory from a specified path.</para>
    /// </summary>
    /// <param name="path">The name of the directory to remove.</param>
    [NativeHeader("Runtime/Export/Windows/WindowsDirectoryBindings.h")]
    [MethodImpl(MethodImplOptions.InternalCall)]
    public static extern void Delete(string path);
  }
}
